package com.google.location.im.ui;


import de.enough.polish.ui.Form;
import de.enough.polish.ui.ImageItem;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Image;

/**
 *
 * @author tharindu
 */
public class SplashScreen extends Form implements javax.microedition.lcdui.CommandListener {

    private ImageItem image_ = null;

    public SplashScreen() {

        //#style imageScreen
        super(null);

        try {
            setCommandListener(this);
        } catch (Exception e) {
            e.printStackTrace();
        }

        try {
            //#style imageItem
            image_ = new ImageItem(null, Image.createImage("/splash.png"), ImageItem.LAYOUT_CENTER, null); //[LOCALE]
            this.append( image_ ); //[LOCALE]
        } catch(Exception ex) {

        }

    }

    public void commandAction(Command c, Displayable d) {
        MainUI.hsenidCommand(c, d);
    }
}
